package edu.wuster.blog.entity;

import edu.wuster.blog.interf.AddGroup;
import jakarta.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Reply {
    private Integer id;

    private Integer commentId;

    private String username;

    // private Integer blogId;

    //private String username2;

    @NotBlank(message = "回复内容不能为空",groups = AddGroup.class)
    private String text;

    private LocalDateTime createTime;


}
